/* ============================================================
   CarZoon — Find My Next Car Homepage Widget
   ============================================================ */

.czfc-wrap {
    width: 100%;
    background: linear-gradient(135deg, #0f2744 0%, #1a3a6e 60%, #2f68ff 100%);
    padding: 56px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.czfc-inner {
    max-width: 920px;
    margin: 0 auto;
}

/* ── HEADING ── */
.czfc-heading {
    text-align: center;
    margin-bottom: 32px;
}
.czfc-title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    line-height: 1.15;
}
.czfc-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,.72);
    margin: 0;
}

/* ── TABS ── */
.czfc-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
    background: rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 5px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.czfc-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,.7);
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}
.czfc-tab:hover { color: #fff; }
.czfc-tab.is-active {
    color: #0f2744 !important;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.czfc-tab svg { flex-shrink: 0; }

/* ── FORM ── */
.czfc-form {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,.22);
}

.czfc-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.czfc-field {}

.czfc-field-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 7px;
}
.czfc-field-label svg { color: #2f68ff; }

.czfc-select,
.czfc-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #0f2744;
    background: #f8fafd;
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.czfc-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}
.czfc-select:focus,
.czfc-input:focus {
    border-color: #2f68ff;
    box-shadow: 0 0 0 3px rgba(47,104,255,.12);
    background: #fff;
}
.czfc-input::placeholder { color: #94a3b8; }

/* ── SEARCH BUTTON ── */
.czfc-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #2f68ff;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
    box-shadow: 0 4px 16px rgba(47,104,255,.35);
    width: 100%;
    justify-content: center;
}
.czfc-search-btn:hover {
    background: #1a50d8;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(47,104,255,.45);
}
.czfc-search-btn:active { transform: translateY(0); }

/* ── STATS BAR ── */
.czfc-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.czfc-stat {
    font-size: 14px;
    color: rgba(255,255,255,.75);
}
.czfc-stat strong {
    color: #fff;
    font-weight: 700;
}
.czfc-stat-sep { color: rgba(255,255,255,.4); }
.czfc-browse-link {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,.35);
    transition: color 0.15s, border-color 0.15s;
}
.czfc-browse-link:hover { color: #fff; border-color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
    .czfc-fields {
        grid-template-columns: 1fr 1fr;
    }
    .czfc-field-btn {
        grid-column: 1 / -1;
    }
    .czfc-search-btn { width: 100%; }
}

@media (max-width: 540px) {
    .czfc-wrap { padding: 40px 16px; }
    .czfc-form { padding: 18px 16px; }
    .czfc-fields { grid-template-columns: 1fr; }
    .czfc-field-btn { grid-column: 1; }
    .czfc-tabs { width: 100%; }
    .czfc-tab { flex: 1; justify-content: center; }
}
